package com.dragon.modules.yuegou.entity.act;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.act.OffPrizeStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 线下抽奖活动奖品表实体类<br>
 * 对应的表为：act_off_prize<br>
 * 
 * @author pbuilder generated
 * @date 2019-11-20 10:03:07
 * @company sgy
 * @version 2.0
 */
@TableName("act_off_prize")
@ApiModel(description = "线下抽奖活动奖品表")
public class OffPrizeEntity {

    /**  */
	protected String id;

    /** 奖品级别 */
	@ApiModelProperty("奖品级别")
	protected String grade;

    /** 名称 */
	@ApiModelProperty("名称")
	protected String name;

    /** 数量 */
	@ApiModelProperty("数量")
	protected Integer sum;

    /** 价值 */
	@ApiModelProperty("价值")
	protected BigDecimal price;

    /** 图片地址 */
	@ApiModelProperty("图片地址")
	protected String img;

    /** [枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER */
	@ApiModelProperty("[枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER")
	protected OffPrizeStatus status;

    /** 活动Id */
	@ApiModelProperty("活动Id")
	protected String activityId;

    /** 商品Id */
	@ApiModelProperty("商品Id")
	protected String skuId;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected String modifiedBy;

    /** 删除 0-未删除；1-已删除 */
	@ApiModelProperty("删除 0-未删除；1-已删除")
	protected Boolean del;

    /**  */
	protected LocalDateTime delTime;

    /**  */
	protected String delBy;

	/**
	 * 构造一个空线下抽奖活动奖品表实体对象
	 */
	public OffPrizeEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个线下抽奖活动奖品表实体对象
	 * 
	 * @param other 其它对象
	 */
	public OffPrizeEntity(OffPrizeEntity other){
		super();
     	this.id = other.id;
     	this.grade = other.grade;
     	this.name = other.name;
     	this.sum = other.sum;
     	this.price = other.price;
     	this.img = other.img;
     	this.status = other.status;
     	this.activityId = other.activityId;
     	this.skuId = other.skuId;
     	this.createdTime = other.createdTime;
     	this.createdBy = other.createdBy;
     	this.modifiedTime = other.modifiedTime;
     	this.modifiedBy = other.modifiedBy;
     	this.del = other.del;
     	this.delTime = other.delTime;
     	this.delBy = other.delBy;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取奖品级别
	 * 
	 * @return grade 奖品级别
	 */
	public String getGrade() {
		return grade;
	}
  	
	/**
	 * 设置奖品级别
	 * 
	 * @param grade 奖品级别
	 */
	public void setGrade(String grade) {
		this.grade = grade;
	}

	/**
	 * 获取名称
	 * 
	 * @return name 名称
	 */
	public String getName() {
		return name;
	}
  	
	/**
	 * 设置名称
	 * 
	 * @param name 名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取数量
	 * 
	 * @return sum 数量
	 */
	public Integer getSum() {
		return sum;
	}
  	
	/**
	 * 设置数量
	 * 
	 * @param sum 数量
	 */
	public void setSum(Integer sum) {
		this.sum = sum;
	}

	/**
	 * 获取价值
	 * 
	 * @return price 价值
	 */
	public BigDecimal getPrice() {
		return price;
	}
  	
	/**
	 * 设置价值
	 * 
	 * @param price 价值
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/**
	 * 获取图片地址
	 * 
	 * @return img 图片地址
	 */
	public String getImg() {
		return img;
	}
  	
	/**
	 * 设置图片地址
	 * 
	 * @param img 图片地址
	 */
	public void setImg(String img) {
		this.img = img;
	}

	/**
	 * 获取[枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @return status [枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 */
	public OffPrizeStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @param status [枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 */
	public void setStatus(OffPrizeStatus status) {
		this.status = status;
	}

	/**
	 * 获取活动Id
	 * 
	 * @return activityId 活动Id
	 */
	public String getActivityId() {
		return activityId;
	}
  	
	/**
	 * 设置活动Id
	 * 
	 * @param activityId 活动Id
	 */
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	/**
	 * 获取商品Id
	 * 
	 * @return skuId 商品Id
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置商品Id
	 * 
	 * @param skuId 商品Id
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取删除 0-未删除；1-已删除
	 * 
	 * @return del 删除 0-未删除；1-已删除
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

    public String toString() {
		return new StringBuilder().append("OffPrizeEntity{").
			append("id=").append(id).
			append(",grade=").append(grade).
			append(",name=").append(name).
			append(",sum=").append(sum).
			append(",price=").append(price).
			append(",img=").append(img).
			append(",status=").append(status).
			append(",activityId=").append(activityId).
			append(",skuId=").append(skuId).
			append(",createdTime=").append(createdTime).
			append(",createdBy=").append(createdBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",del=").append(del).
			append(",delTime=").append(delTime).
			append(",delBy=").append(delBy).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public OffPrizeEntity copy() {
		return new OffPrizeEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 奖品级别 */
	public static final String COL_GRADE = "grade";

    /** 名称 */
	public static final String COL_NAME = "name";

    /** 数量 */
	public static final String COL_SUM = "sum";

    /** 价值 */
	public static final String COL_PRICE = "price";

    /** 图片地址 */
	public static final String COL_IMG = "img";

    /** [枚举]奖品进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER */
	public static final String COL_STATUS = "status";

    /** 活动Id */
	public static final String COL_ACTIVITY_ID = "activity_id";

    /** 商品Id */
	public static final String COL_SKU_ID = "sku_id";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 删除 0-未删除；1-已删除 */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_TIME = "del_time";

    /**  */
	public static final String COL_DEL_BY = "del_by";
}
